<%@page import="org.lxy.service.UserInfoService"%>
<%@page import="org.lxy.domain.UserInfoEntity"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
UserInfoEntity userinfo=(UserInfoEntity)request.getSession().getAttribute("Account");
WebApplicationContext context= WebApplicationContextUtils.getWebApplicationContext(application);
userinfo.setPassword(request.getParameter("password"));
context.getBean(UserInfoService.class).updateById(userinfo);
out.write("<script>window.parent.location.href='/login'</script>");
%>